﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>我的IM</title>
    <meta name="viewport" content="initial-scale=1, maximum-scale=1">
    <link rel="shortcut icon" href="/favicon.ico">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">

    <link rel="stylesheet" href="//g.alicdn.com/msui/sm/0.6.2/css/sm.min.css">
    <link rel="stylesheet" href="//g.alicdn.com/msui/sm/0.6.2/css/sm-extend.min.css">
    <style>
        .list-block .item-subtitle {
            font-size: 0.5rem;
        }

        .list-block li {
            box-sizing: border-box;
            position: relative;
            margin-bottom: 0rem;
            border-bottom: 1px solid #ccc;
        }

        .panel {
            background: #61A3F9;
            color: #fff;
        }


        iframe {
            padding-top: 2rem;
        }
    </style>
</head>
<body>
    <div class="page-group">
        <div id="router" class="page">
            <!-- 标题栏 -->
            <header class="bar bar-nav">
                <a class="icon icon-menu pull-left open-panel"></a>
                <h1 class="title">消息</h1>
            </header>

            <!-- 工具栏 -->
            <nav class="bar bar-tab">
                <a class="tab-item active" href="javascript:void(0);" onclick="$('#iframe').attr('src', 'Message.html'); $('.title').text('消息'); $('.tab-item ').removeClass('active'); $(this).addClass('active');">
                    <span class="icon icon-message"></span>
                    <span class="tab-label">消息</span>
                    <span class="badge">2</span>
                </a>
                <a class="tab-item" href="javascript:void(0);" onclick="$('#iframe').attr('src', 'Contact.html');$('.title').text('联系人'); $('.tab-item ').removeClass('active'); $(this).addClass('active');">
                    <span class="icon icon-friends"></span>
                    <span class="tab-label">联系人</span>
                </a>
                <a class="tab-item" href="javascript:void(0);" onclick="$('#iframe').attr('src', 'More.html');$('.title').text('设置'); $('.tab-item ').removeClass('active'); $(this).addClass('active');">
                    <span class="icon icon-settings"></span>
                    <span class="tab-label">设置</span>
                </a>
            </nav>
            <iframe id="iframe" src="message.html" frameborder="0" style="width:100%;height:600px;"></iframe>
        </div>
    </div>

    <div class="panel panel-left panel-reveal">
        <div class="content-block">
            <p>这是一个侧栏</p>
            <p></p>
            <!-- Click on link with "close-panel" class will close panel -->
            <p><a href="javascript:void(0);" class="close-panel">关闭</a></p>
        </div>
    </div>
    <script type='text/javascript' src='//g.alicdn.com/sj/lib/zepto/zepto.min.js' charset='utf-8'></script>
    <script type='text/javascript' src='//g.alicdn.com/msui/sm/0.6.2/js/sm.min.js' charset='utf-8'></script>
    <script type='text/javascript' src='//g.alicdn.com/msui/sm/0.6.2/js/sm-extend.min.js' charset='utf-8'></script>
    <!-- 默认必须要执行$.init(),实际业务里一般不会在HTML文档里执行，通常是在业务页面代码的最后执行 -->
    <script>
        //打开自动初始化页面的功能
        //建议不要打开自动初始化，而是自己调用 $.init 方法完成初始化
        $.config = {
            autoInit: false,
            swipePanel: "left",
            swipePanelOnlyClose: true
        }

        $.init();
    </script>
</body>
</html>